/**********************************************************************************************************************
 *  COPYRIGHT
 *  -------------------------------------------------------------------------------------------------------------------
 *
 *                This software is copyright protected and proprietary to Vector Informatik GmbH.
 *                Vector Informatik GmbH grants to you only those rights as set out in the license conditions.
 *                All other rights remain with Vector Informatik GmbH.
 *  -------------------------------------------------------------------------------------------------------------------
 *  FILE DESCRIPTION
 *  -------------------------------------------------------------------------------------------------------------------
 *          File:  Rte_CtCdA2b.h
 *        Config:  D:/Projects/Amp/03_Software/SIP_S32K14X/Application/SipAddon/S32K144_Handle_DEMO/S32K144_Start.dpa
 *     SW-C Type:  CtCdA2b
 *  Generated at:  Thu Apr 25 17:23:01 2024
 *
 *     Generator:  MICROSAR RTE Generator Version 4.19.0
 *                 RTE Core Version 1.19.0
 *       License:  CBD1800257
 *
 *   Description:  Application header file for SW-C <CtCdA2b> (Contract Phase)
 *********************************************************************************************************************/

/* double include prevention */
#ifndef _RTE_CTCDA2B_H
# define _RTE_CTCDA2B_H

# ifdef RTE_APPLICATION_HEADER_FILE
#  error Multiple application header files included.
# endif
# define RTE_APPLICATION_HEADER_FILE
# ifndef RTE_PTR2ARRAYBASETYPE_PASSING
#  define RTE_PTR2ARRAYBASETYPE_PASSING
# endif

# ifdef __cplusplus
extern "C"
{
# endif /* __cplusplus */

/* include files */

# include "Rte_CtCdA2b_Type.h"
# include "Rte_DataHandleType.h"


/**********************************************************************************************************************
 * Component Data Structures and Port Data Structures
 *********************************************************************************************************************/

struct Rte_CDS_CtCdA2b
{
  /* dummy entry */
  uint8 _dummy;
};

# define RTE_START_SEC_CONST_UNSPECIFIED
# include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_19.1 */

extern CONSTP2CONST(struct Rte_CDS_CtCdA2b, RTE_CONST, RTE_CONST) Rte_Inst_CtCdA2b; /* PRQA S 0850 */ /* MD_MSR_19.8 */

# define RTE_STOP_SEC_CONST_UNSPECIFIED
# include "MemMap.h" /* PRQA S 5087 */ /* MD_MSR_19.1 */

typedef P2CONST(struct Rte_CDS_CtCdA2b, TYPEDEF, RTE_CONST) Rte_Instance;


# define CtCdA2b_START_SEC_CODE
# include "CtCdA2b_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_19.1 */


/**********************************************************************************************************************
 *
 * Runnable Entity Name: RCtCdA2b_Init
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed once after the RTE is started
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RCtCdA2b_Init A2b_Init
FUNC(void, CtCdA2b_CODE) A2b_Init(void); /* PRQA S 0850 */ /* MD_MSR_19.8 */

/**********************************************************************************************************************
 *
 * Runnable Entity Name: RCtCdA2b_Mainfunction
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered on TimingEvent every 10ms
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RCtCdA2b_Mainfunction A2b_Mainfunction
FUNC(void, CtCdA2b_CODE) A2b_Mainfunction(void); /* PRQA S 0850 */ /* MD_MSR_19.8 */

/**********************************************************************************************************************
 *
 * Runnable Entity Name: RCtCdA2b_ReadRemotePeri
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered by server invocation for OperationPrototype <A2b_ReadRemotePeri> of PortPrototype <PpA2bIf>
 *
 **********************************************************************************************************************
 *
 * Runnable prototype:
 * ===================
 *   Std_ReturnType A2b_ReadRemotePeri(uint16 NetworkId, uint8 NodeAddr, uint8 ChipAddr, uint8 RegAddr, uint8 Length, pUint8 Buf)
 *
 **********************************************************************************************************************
 *
 * Available Application Errors:
 * =============================
 *   RTE_E_PiA2bIf_E_A2B_READ_FAILED
 *   RTE_E_PiA2bIf_E_A2B_WRITE_FAILED
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RCtCdA2b_ReadRemotePeri A2b_ReadRemotePeri
FUNC(Std_ReturnType, CtCdA2b_CODE) A2b_ReadRemotePeri(uint16 NetworkId, uint8 NodeAddr, uint8 ChipAddr, uint8 RegAddr, uint8 Length, pUint8 Buf); /* PRQA S 0850 */ /* MD_MSR_19.8 */

/**********************************************************************************************************************
 *
 * Runnable Entity Name: RCtCdA2b_ReadRemotePin
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered by server invocation for OperationPrototype <A2b_ReadRemotePin> of PortPrototype <PpA2bIf>
 *
 **********************************************************************************************************************
 *
 * Runnable prototype:
 * ===================
 *   Std_ReturnType A2b_ReadRemotePin(uint16 NetworkId, uint8 NodeAddr, uint8 Pin, pUint8 Val)
 *
 **********************************************************************************************************************
 *
 * Available Application Errors:
 * =============================
 *   RTE_E_PiA2bIf_E_A2B_READ_FAILED
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RCtCdA2b_ReadRemotePin A2b_ReadRemotePin
FUNC(Std_ReturnType, CtCdA2b_CODE) A2b_ReadRemotePin(uint16 NetworkId, uint8 NodeAddr, uint8 Pin, pUint8 Val); /* PRQA S 0850 */ /* MD_MSR_19.8 */

/**********************************************************************************************************************
 *
 * Runnable Entity Name: RCtCdA2b_WriteRemotePeri
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered by server invocation for OperationPrototype <A2b_WriteRemotePeri> of PortPrototype <PpA2bIf>
 *
 **********************************************************************************************************************
 *
 * Runnable prototype:
 * ===================
 *   Std_ReturnType A2b_WriteRemotePeri(uint16 NetworkId, uint8 NodeAddr, uint8 ChipAddr, uint8 RegAddr, uint8 length, pUint8 buf)
 *
 **********************************************************************************************************************
 *
 * Available Application Errors:
 * =============================
 *   RTE_E_PiA2bIf_E_A2B_WRITE_FAILED
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RCtCdA2b_WriteRemotePeri A2b_WriteRemotePeri
FUNC(Std_ReturnType, CtCdA2b_CODE) A2b_WriteRemotePeri(uint16 NetworkId, uint8 NodeAddr, uint8 ChipAddr, uint8 RegAddr, uint8 length, pUint8 buf); /* PRQA S 0850 */ /* MD_MSR_19.8 */

/**********************************************************************************************************************
 *
 * Runnable Entity Name: RCtCdA2b_WriteRemotePin
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered by server invocation for OperationPrototype <A2b_WriteRemotePin> of PortPrototype <PpA2bIf>
 *
 **********************************************************************************************************************
 *
 * Runnable prototype:
 * ===================
 *   Std_ReturnType A2b_WriteRemotePin(uint16 NetworkId, uint8 NodeAddr, uint8 Pin, boolean Val)
 *
 **********************************************************************************************************************
 *
 * Available Application Errors:
 * =============================
 *   RTE_E_PiA2bIf_E_A2B_WRITE_FAILED
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RCtCdA2b_WriteRemotePin A2b_WriteRemotePin
FUNC(Std_ReturnType, CtCdA2b_CODE) A2b_WriteRemotePin(uint16 NetworkId, uint8 NodeAddr, uint8 Pin, boolean Val); /* PRQA S 0850 */ /* MD_MSR_19.8 */

/**********************************************************************************************************************
 *
 * Runnable Entity Name: RCtcdA2b_NetworkSetup
 *
 *---------------------------------------------------------------------------------------------------------------------
 *
 * Executed if at least one of the following trigger conditions occurred:
 *   - triggered by server invocation for OperationPrototype <A2b_NetworkSetup> of PortPrototype <PpA2bIf>
 *
 **********************************************************************************************************************
 *
 * Runnable prototype:
 * ===================
 *   Std_ReturnType A2b_NetworkSetup(uint16 NetworkId)
 *
 **********************************************************************************************************************
 *
 * Available Application Errors:
 * =============================
 *   RTE_E_PiA2bIf_E_A2B_SETUP_FAILED
 *
 *********************************************************************************************************************/

# define RTE_RUNNABLE_RCtcdA2b_NetworkSetup A2b_NetworkSetup
FUNC(Std_ReturnType, CtCdA2b_CODE) A2b_NetworkSetup(uint16 NetworkId); /* PRQA S 0850 */ /* MD_MSR_19.8 */

# define CtCdA2b_STOP_SEC_CODE
# include "CtCdA2b_MemMap.h" /* PRQA S 5087 */ /* MD_MSR_19.1 */


/**********************************************************************************************************************
 * Application errors
 *********************************************************************************************************************/

# define RTE_E_PiA2bIf_E_A2B_READ_FAILED (3U)

# define RTE_E_PiA2bIf_E_A2B_SETUP_FAILED (1U)

# define RTE_E_PiA2bIf_E_A2B_WRITE_FAILED (2U)

# ifdef __cplusplus
} /* extern "C" */
# endif /* __cplusplus */

#endif /* _RTE_CTCDA2B_H */
